﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/admin.Master" Inherits="System.Web.Mvc.ViewPage<_619BJP.Models.ProductModel>" %>

<asp:Content ID="ContentHead" ContentPlaceHolderID="head" runat="server">
    <script src="../../Scripts/Component/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../../Scripts/Instance/admin/productupload.js" type="text/javascript"></script>
    <link href="../../Content/css/Instance/admin/productupload.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/Global/basedata.js" type="text/javascript"></script>
    <script src="../../Scripts/Component/kindeditor/kindeditor.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(document).ready(function () {

                var editor;
                var html;

                KindEditor.ready(function (K) {
                    editor = K.create('textarea[name="description"]', {
                        allowFileManager: true
                    });
//                    K('input[name=btnUpload]').click(function (e) {

//                        $.post(encodeURI("/Admin/NewArticle"), {
//                            article_title: $("#article_title").val(),
//                            category: $("#category").val(),
//                            content: editor.html().toString().trim()
//                        },
//                        function (data) {
//                            if (data != null && data["Success"]) {
//                                alert(data["info"]);
//                                location.reload();
//                            }
//                            else {
//                                alert(data["Info"]);
//                            }
//                        }, "json");
//                    });
                });
            });
    </script>
    <style type="text/css">
        #ProductDes{width:520px;height:150px;visibility:hidden; float:right;}
        .ke-container{ float:right; margin-right:400px;}
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="form_panel">

        <div class="title">
            添加品牌</div>

        <form id="frm_uploadproduct" action="/Admin/productupload" method="post" enctype="multipart/form-data">
        <ul class="feild_list">
            <li id="product_name" >
                <label>
                    产品名称<span class="redcolor">*</span></label><input type="text" id="txtProductName" name="product_name" /></li>
            <li id="Li1" >
                <label>
                    批准文号<span class="redcolor">*</span></label><input type="text" id="txtApproveNumber" name="approve_number" /></li>
            <li  >
                <label>
                   产品类别<span class="redcolor">*</span></label>
                <select id="product_category" name="category_id">  </select>
              
            </li>
              <li  >
                <label>
                   所属品牌</label>
                <select id="Select1">
                </select>
                 
              </li>
                 <li  >
                <label>
                   生产厂家<span class="redcolor">*</span></label>
               <input type="text" id="txtProducer" name="producer" />
                 
              </li>
             
               <li  >
                <label>
                   保健功能<span class="redcolor">*</span></label>
              <input type="text" id="txtHealthFunctions" name="health_functions" />
                 
              </li>

                 <li  >
                <label>
                   产品规格</label>
               <input type="text" id="txtProductSpecification" name="product_specification" />
                 
              </li>

               <li  >
                <label>
                   适宜人群</label>
              <input type="text" id="txtSuitCrowds" name="suit_crowds" /> </li>
                <li  >
                <label>
                   价格</label>
              <input type="text" id="txtMarketPrice" name="market_price" />
                 
              </li>
                  <li  >
                <label>
                   产品图片<span class="redcolor">*</span></label>
                <input  type="file" id="ProductPic" name="img_url"/>
               
                 
              </li>
                <li  id="liProductDes" >
                <label>
                   产品介绍</label>
                <textarea id="ProductDes" name="description"  cols="100" rows="8" ></textarea>
                 
              </li>

                <li>
                <input  type="submit" id="btnUpload" value="提交"/>
                </li>
          
        </ul>
        </form>
       
    </div>
</asp:Content>
